<template>
	<view class="content">
		<view class="head">
			<image class="headicon" :src="userinfo.headicon"></image>
			<view class="text-area">
				<text class="title">{{userinfo.username}}</text>
			</view>
		</view>
		<view class="entry-wrapper">
			<view class="entry"><image src="../../static/UserInfo.png"></image>个人信息</view>
			<view class="entry"><image src="../../static/purchaseorder.png" mode=""></image>订单列表</view>
			<view class="entry"><image src="../../static/modify-password.png"></image>修改密码</view>
			<view class="entry"><image src="../../static/yijianfankui.png"/>意见反馈</view>
		</view>	
		<view class="button">
			<button type="primary">退出</button>
		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				userinfo:{
					userid:'001',
					headicon:'/static/head_icon.png',
					username:'tom'
				}
			}
		},
		onLoad() {
			
		},
		methods: {

		}
	}
</script>

<style>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		padding: 20rpx;
	}
	.head{
		width: 100%;
		display: flex;
		flex-direction: row;

		justify-content: flex-start;
	}
	.headicon {
		height: 120rpx;
		width: 120rpx;
		margin-top: 80rpx;
		margin-bottom: 50rpx;
		border-radius: 50%;
		margin-left: 80rpx;
		
	}

	.text-area {
		flex-direction: column;
		margin-top: 80rpx;
		margin-left: 80rpx;
		height: 120rpx;
		line-height: 120rpx;
		
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}

	.entry::after{
		content: '';
		background-image: url('../../static/more.png');
		position: absolute;
		width: 50rpx;
		height: 50rpx;
		margin-top: 0.5em;
		background-size: contain;
		right: 50rpx;
	}
	
	
	.entry-wrapper{
		margin-top: 80rpx;
		margin-bottom: 80rpx;
		width: 95%;
		
	}
	.entry-wrapper>view>image{
		width: 48rpx;
		height: 48rpx;
	}
	.entry-wrapper>view{
		width: 100%;
		height: 3em;
		line-height: 3em;
		border-bottom: 1px solid #CCC;
		text-indent: 1em;
		display: flex;
		flex-direction: row;
		align-items: center;
	}
	.entry-wrapper>view:first-child{
		border-top: 1px solid #CCC;
	}
	.button{
		width: 95%;
	}
</style>
